From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx@mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Tue Mar 28 18:25:26 2006 Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 28 18:25:26 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 28 18:25:26 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx@mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue Mar 28 18:25:26 2006 Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0001.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Tue Mar 28 18:25:26 2006 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0001.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Tue Mar 28 20:17:21 2006 Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 28 20:17:21 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue Mar 28 20:17:21 2006 Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx@mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue Mar 28 20:17:21 2006 Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0002.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0002.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0003.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0003.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0004.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0004.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0005.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0005.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0006.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0006.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0007.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0007.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0008.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0008.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0009.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0009.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0010.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0010.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0011.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0011.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0012.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0012.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0013.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0013.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0014.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0014.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0015.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0015.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0016.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0016.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0017.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0017.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0018.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0018.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0019.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0019.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0020.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0020.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0021.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0021.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0022.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0022.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0023.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0023.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0024.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0024.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0025.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0025.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0026.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0026.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0027.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0027.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0028.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0028.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0029.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0029.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0030.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0030.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0031.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0031.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0032.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0032.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0033.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0033.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0034.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0034.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0035.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0035.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0036.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0036.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0037.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0037.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0038.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0038.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0039.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0039.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0040.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0040.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0041.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0041.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0042.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0042.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0043.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0043.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0044.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0044.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0045.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0045.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0046.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0046.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0047.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0047.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0048.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0048.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0049.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0049.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0050.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0050.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0051.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0051.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0052.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0052.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0053.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0053.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0054.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0054.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0055.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0055.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0056.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0056.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0057.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0057.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0058.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0058.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0059.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0059.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0060.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0060.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0061.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0061.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0062.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0062.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0063.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0063.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0064.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0064.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0065.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0065.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0066.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0066.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0067.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0067.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0068.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0068.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0069.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0069.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0070.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0070.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0071.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0071.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0072.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0072.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0073.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0073.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0074.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0074.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0075.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0075.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0076.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0076.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0077.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0077.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0078.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0078.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0079.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0079.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0080.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0080.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0081.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0081.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0082.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0082.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0083.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0083.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0084.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0084.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0085.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0085.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0086.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0086.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0087.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0087.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0088.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0088.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0089.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0089.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0090.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0090.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0091.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0091.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0092.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0092.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0093.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0093.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0094.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0094.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0095.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0095.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0096.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0096.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0097.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0097.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0098.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0098.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0099.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0099.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0100.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0100.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0101.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0101.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0102.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0102.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0103.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0103.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0104.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0104.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0105.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0105.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0106.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0106.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0107.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0107.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0108.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0108.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0109.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0109.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0110.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0110.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0111.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0111.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0112.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0112.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0113.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0113.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0114.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0114.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0115.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0115.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0116.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0116.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0117.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0117.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0118.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0118.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0119.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0119.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0120.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0120.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0121.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0121.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0122.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0122.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0123.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0123.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0124.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0124.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0125.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0125.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0126.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0126.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0127.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0127.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0128.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0128.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0129.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0129.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0130.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0130.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0131.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0131.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0132.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0132.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0133.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0133.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0134.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0134.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0135.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0135.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0136.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0136.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0137.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0137.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0138.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0138.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0139.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0139.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0140.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0140.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0141.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0141.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0142.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0142.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0143.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0143.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0144.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0144.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0145.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0145.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0146.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0146.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0147.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0147.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0148.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0148.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0149.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0149.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0150.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0150.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0151.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0151.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0152.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0152.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0153.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0153.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0154.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0154.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0155.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0155.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0156.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0156.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0157.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0157.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0158.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0158.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0159.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0159.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0160.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0160.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0161.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0161.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0162.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0162.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0163.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0163.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0164.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0164.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0165.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0165.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0166.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0166.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0167.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0167.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0168.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0168.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0169.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0169.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0170.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0170.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0171.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0171.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0172.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0172.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0173.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0173.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0174.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0174.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0175.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0175.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0176.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0176.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0177.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0177.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0178.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0178.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0179.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0179.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0180.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0180.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0181.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0181.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0182.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0182.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0183.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0183.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0184.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0184.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0185.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0185.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0186.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0186.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0187.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0187.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0188.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0188.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0189.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0189.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0190.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0190.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0191.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0191.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0192.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0192.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0193.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0193.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0194.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0194.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0195.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0195.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0196.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0196.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0197.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0197.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0198.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0198.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0199.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0199.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0200.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0200.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0201.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0201.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0202.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0202.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0203.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0203.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0204.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0204.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0205.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0205.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0206.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0206.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0207.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0207.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0208.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0208.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0209.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0209.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0210.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0210.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0211.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0211.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0212.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0212.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0213.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0213.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0214.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0214.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0215.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0215.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0216.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0216.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0217.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0217.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0218.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0218.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0219.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0219.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0220.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0220.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0221.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0221.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0222.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0222.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0223.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0223.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0224.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0224.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0225.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0225.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0226.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0226.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0227.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0227.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0228.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0228.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0229.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0229.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0230.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0230.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0231.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0231.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0232.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0232.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0233.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0233.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0234.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0234.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0235.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0235.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0236.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0236.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0237.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0237.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0238.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0238.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0239.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0239.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0240.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0240.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0241.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0241.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0242.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0242.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0243.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0243.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0244.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0244.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0245.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0245.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0246.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0246.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0247.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0247.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0248.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0248.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0249.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0249.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0250.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0250.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0251.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0251.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0252.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0252.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0253.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0253.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0254.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0254.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0255.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0255.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0256.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0256.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0257.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0257.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0258.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0258.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0259.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0259.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0260.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0260.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0261.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0261.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0262.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0262.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0263.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0263.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0264.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0264.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0265.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0265.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0266.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0266.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0267.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0267.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0268.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0268.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0269.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0269.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0270.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0270.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0271.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0271.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0272.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0272.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0273.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0273.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0274.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0274.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0275.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0275.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0276.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0276.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0277.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0277.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0278.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0278.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0279.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0279.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0280.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0280.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0281.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0281.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0282.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0282.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0283.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0283.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0284.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0284.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0285.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0285.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0286.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0286.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0287.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0287.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0288.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0288.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0289.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0289.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0290.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0290.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0291.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0291.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0292.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0292.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0293.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0293.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0294.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0294.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0295.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0295.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0296.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0296.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0297.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0297.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0298.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0298.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0299.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0299.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0300.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0300.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0301.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0301.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0302.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0302.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0303.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0303.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0304.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0304.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0305.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0305.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0306.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0306.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0307.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0307.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0308.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0308.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0309.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0309.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0310.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0310.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0311.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0311.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0312.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0312.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0313.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0313.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0314.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0314.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0315.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0315.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0316.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0316.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0317.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0317.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0318.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0318.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0319.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0319.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0320.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0320.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0321.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0321.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0322.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0322.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0323.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0323.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0324.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0324.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0325.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0325.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0326.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0326.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0327.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0327.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0328.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0328.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0329.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0329.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0330.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0330.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0331.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0331.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0332.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0332.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0333.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0333.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0334.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0334.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0335.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0335.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0336.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0336.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0337.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0337.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0338.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0338.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0339.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0339.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0340.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0340.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0341.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0341.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0342.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0342.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0343.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0343.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0344.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0344.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0345.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0345.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0346.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0346.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0347.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0347.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0348.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0348.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0349.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0349.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0350.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0350.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0351.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0351.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0352.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0352.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0353.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0353.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0354.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0354.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0355.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0355.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0356.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0356.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0357.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0357.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0358.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0358.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0359.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0359.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0360.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0360.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0361.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0361.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0362.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0362.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0363.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0363.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0364.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0364.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0365.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0365.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0366.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0366.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0367.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0367.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0368.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0368.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0369.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0369.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0370.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0370.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0371.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0371.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0372.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0372.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0373.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0373.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0374.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0374.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0375.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0375.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0376.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0376.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0377.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0377.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0378.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0378.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0379.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0379.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0380.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0380.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0381.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0381.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0382.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0382.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0383.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0383.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0384.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0384.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0385.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0385.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0386.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0386.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0387.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0387.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0388.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0388.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0389.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0389.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0390.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0390.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0391.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0391.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0392.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0392.html From handzisk at tkn.tu-berlin.de Mon Jul 18 06:17:46 2005 From: handzisk at tkn.tu-berlin.de (Vlado Handziski) Date: Mon, 18 Jul 2005 14:17:46 +0200 (CEST) Subject: [Rxtx] (no subject) Message-ID: <36662.130.149.49.19.1121689066.squirrel@mail.tkn.tu-berlin.de> On 6/24/05, Trent Jarvi wrote: > On Fri, 24 Jun 2005, Vlado Handziski wrote: > > > Hi all, > > > > let me first express my compliments on the great work you have done with > > the RXTX library. > > > > We have been using the library for some time, and we are at a point where > > we want to make our code public. For legacy reasons, the code that the > > RXTX library is bundled with, uses the javax.comm namespace. We have been > > using the ChangePackage script to change the RXTX2.1 package from gnu.io > > into javax.comm. We need the independent implementation since we want to > > be able to directly access /dev/ttyUSBx ports in linux and the CommAPI > > versions are just not as stable. > > > > On the download page, there is a comment that this is in violation of > > sun's license. Can someone shed more light on this. I was not aware that > > you can protect the names of the java packages. > > > > Best regards, > > Vlado > > > > I can't provide legal advice as I am not a lawyer. > > (v) may not create, or authorize your licensees to create additional > classes, interfaces, or subpackages that are contained in the "java", > "javax" or "sun" packages or similar as specified by Sun in any class file > naming convention; and > > The license is in the commapi package from Sun. The above is also in all > the EULA's you click through to download from Sun if I'm not mistaken. > > Simply put, the license taints developers that agree to it. For those > developers, Sun has control of the javax.comm namespace. > > It really does not make sense to put rxtx 2.1 in the javax.comm namespace. > > It will only cause confusion which I think is the point of the clause > above. The gnu.io namespace was perhaps a poor choice and just tossed in > when reviewing the license to get out of Sun's namespace. > > There is nothing in the rxtx license limiting your freedom in this fashion > though. Many companies are moving to gnu.io and some distribute it with > popular applications you would recognize. I'm tempted to ask you not > to contaminate rxtx 2.1 with the javax.comm namespace. > > You can certainly do /dev/ttyUSBx with rxtx 2.0 and stay in javax.comm > using Sun's package. rxtx 2.1 adds new classes and (clearly labeled) > extensions to existing classes (which I dont think you are using); it is > not just javax.comm. Hi again, for the last couple of days I've been trying to migrate back to 2.0 + comm.jar but I have problems getting /dev/ttyUSBx recognized as available ports. I've tried creating a gnu.io.rxtx.properties file with gnu.io.rxtx.SerialPorts=/dev/usb/ttyUSBx or passing it via -D to java, but it does not seem to work. Any hints? Best regards, Vlado Handziski From phm4 at kent.ac.uk Tue Jul 19 07:59:29 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 14:59:29 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? Message-ID: Hello, could some one please tell me how to initialise class CommPortIdentifier, so that the static method below will be able to return a serial port which matches the String s. I am using familiar linux on an ipaq and would be able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to be a bug in the place lab code which allways returns no such port. What made me wonder about the initialisation is that the first line they make use of the rxtx library is: serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); where port is /dev/bluetooth/rfcomm/1 Thank you for your help, Phil static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException { System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); CommPortIdentifier index = CommPortIndex; synchronized (Sync) { System.out.println("HELLO"); while (index != null) { if (index.PortName.equals(s)) break; index = index.next; } } if (index != null) return index; else { System.out.println("not found!" + s); throw new NoSuchPortException(); } } From phm4 at kent.ac.uk Tue Jul 19 08:15:38 2005 From: phm4 at kent.ac.uk (Philipp H. Mohr) Date: Tue, 19 Jul 2005 15:15:38 +0100 (BST) Subject: [Rxtx] CommPortIdentifier how to load all serial ports ? In-Reply-To: References: Message-ID: I should have said the error I am getting from placelab is: CommPortIdentifier:static initialization() Experimental: JNI_OnLoad called. Devel Library ========================================= Native lib Version = RXTX-2.1-7pre20 Java lib Version = RXTX-2.1-7pre20 CommPortIdentifier:getPortIdentifier(/dev/bluetooth/rfcomm/1) HELLO not found!/dev/bluetooth/rfcomm/1 gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(Unknown Source) at org.placelab.util.GPSEcho.(Unknown Source) at org.placelab.util.GPSEcho.main(Unknown Source) Thanks, Phil On Tue, 19 Jul 2005, Philipp H. Mohr wrote: > > Hello, > > could some one please tell me how to initialise class CommPortIdentifier, > so that the static method below will be able to return a serial port which > matches the String s. I am using familiar linux on an ipaq and would be > able to use /dev/bluetooth/rfcomm/1 with placelab.org - but there seems to > be a bug in the place lab code which allways returns no such port. > What made me wonder about the initialisation is that the first line they > make use of the rxtx library is: > > > serialPort = (SerialPort)CommPortIdentifier.getPortIdentifier(port).open("GPSEcho", 2000); > > where port is /dev/bluetooth/rfcomm/1 > > > Thank you for your help, > Phil > > > static public CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException > { > System.out.println("CommPortIdentifier:getPortIdentifier(" + s +")"); > CommPortIdentifier index = CommPortIndex; > > synchronized (Sync) > { > System.out.println("HELLO"); > while (index != null) > { > if (index.PortName.equals(s)) break; > index = index.next; > } > } > if (index != null) return index; > else > { > > System.out.println("not found!" + s); > throw new NoSuchPortException(); > } > } > _______________________________________________ > Rxtx mailing list > Rxtx at mail.electronpusher.org > http://www.electronpusher.org/mailman/listinfo/rxtx > -- www.cs.kent.ac.uk/~phm4 From mdasht2004 at yahoo.com Tue Jul 19 14:28:07 2005 From: mdasht2004 at yahoo.com (mdasht) Date: Tue, 19 Jul 2005 13:28:07 -0700 (PDT) Subject: [Rxtx] Problem with RXTXComm SerialPort in Windows Message-ID: <20050719202807.35203.qmail@web50006.mail.yahoo.com> Hi all, I open an ObjectOutputStream using RXTX-2.1-7pre17 for communicating via RS232 SerialPort. my code is working nicely on Linux, but when I run my program on Windows I get this Error : java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1166) at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) any Ideas about this probelm? Regards, mdasht. --------------------------------- Start your day with Yahoo! - make it your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050719/ab384dcb/attachment-0393.html From andre.gouvea at gmail.com Wed Jul 20 09:08:45 2005 From: andre.gouvea at gmail.com (Andre Felipe Pirre Gouvea) Date: Wed, 20 Jul 2005 12:08:45 -0300 Subject: [Rxtx] Linux parallel port don't inititialize Message-ID: <8f1ab6ba05072008084a044219@mail.gmail.com> Hi, I'm use slackware 10.1, kernel 2.4.29, I have been some problems with RXTX (2-0-7pre2), when I try to use the parallel port I get a java.lang.UnsatisfiedLinkError: Initialize at gnu.io.LPRPort.Initialize(Native Method). Anyone can help-me ?! Thx, Pirr? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050720/3cb647f0/attachment-0393.html